package com.company.modules.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.modules.project.entity.DepartmentAdmin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Xmirror
* @description 针对表【department_admin(部门管理员)】的数据库操作Mapper
* @createDate 2022-02-26 13:18:20
* @Entity com.company.modules.project.entity.DepartmentAdmin
*/
@Mapper
public interface DepartmentAdminMapper extends BaseMapper<DepartmentAdmin> {

    /**
     * 查询某个管理员所管理的所有部门 ID
     *
     * @param userId    员工 ID
     * @param companyId 公司 ID
     * @return List 集合
     */
    List<Integer> selectAllAdminDepartmentByUserId(Integer userId, Integer companyId);

}
